package com.spzx.manager.mapper;

import com.spzx.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/2/28 22:50
 */
@Mapper
public interface SysMenuMapper {

    //查询所有菜单
    public abstract List<SysMenu> selectAll();

    //菜单添加
    public abstract void insert(SysMenu sysMenu);

    //菜单修改
    public abstract void updateById(SysMenu sysMenu);

    //
    public abstract int countByParentId(Long id);

    //删除菜单
    public abstract void deleteById(Long id);

    //动态显示菜单
    public abstract List<SysMenu> selectListByUserId(Long userId);

    public abstract SysMenu selectById(Long id);
}
